import Home from '@/view/home'
export default [
    // 重定向
    {
        path: '',
        redirect: '/survey'
    },

    // 概况
    {
        path: '/survey',
        redirect: '/survey/surveyContent',
        component: Home,
        meta: {
            icon: 'md-albums',
            title: '概览',
            classAName: 'survey',
            classAIndex: 0,
        },
        children: [{
            path: '/survey/surveyContent',
            redirect: '/survey/surveyContent/surveryDetails',
            component: () => import('@/view/survey/survey'),
            meta: {
                icon: 'md-albums',
                title: '概览',
                classBName: 'surveyContent',
                classBIndex: 0,
            },
            children: [{
                    path: '/survey/surveyContent/surveryDetails',
                    component: () => import('@/view/survey/surveyContent/surveryDetails'),
                    meta: {
                        icon: 'md-albums',
                        title: '概览',
                        classCName: 'surveryDetails',
                        classCIndex: 0,
                        classCOff: true,
                    }
                },
                {
                    path: '/survey/surveyContent/version',
                    component: () => import('@/view/survey/surveyContent/version/version'),
                    meta: {
                        title: '版本',
                        classCName: 'surveryDetails',
                        classCIndex: 0,
                        classCOff: false,
                    }
                }
            ]
        }, ]
    },

    {
        path: '/mall',
        redirect: '/mall/renovation',
        component: Home,
        meta: {
            icon: 'ios-cart',
            title: '概览',
            classAName: 'mall',
            classAIndex: 1,
        },
        children: [{
                path: '/mall/mallInformation',
                redirect: '/mall/mallInformation/baseInfo',
                component: () => import('@/view/mall/mall'),
                meta: {
                    icon: 'md-albums',
                    title: '概览',
                    classBName: 'mallInformation',
                    classBIndex: 1,
                },
                children: [{
                        path: '/mall/mallInformation/baseInfo',
                        component: () => import('@/view/mall/mallInformation/baseInfo'),
                        meta: {
                            title: '基础信息',
                            classCName: 'baseInfo',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/mall/mallInformation/protocolSet',
                        component: () => import('@/view/mall/mallInformation/protocolSet'),
                        meta: {
                            title: '协议信息',
                            classCName: 'protocolSet',
                            classCIndex: 2,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/indexPage/indexPage',
                        component: () => import('@/view/publicAccount/indexPage'),
                        meta: {
                            title: '首页配置',
                            classCName: 'indexPage',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/setting/shareSetting/shareSetting',
                        component: () => import('@/view/setting/shareSetting/shareSetting'),
                        meta: {
                            title: '分享配置',
                            classCName: 'shareSetting',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/topiceSetting/topiceSetting',
                        component: () => import('@/view/publicAccount/topiceSetting'),
                        meta: {
                            title: '专题配置',
                            classCName: 'topiceSetting',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                ]
            },
            {
                path: '/publicAccount/publicAccount',
                redirect: '/publicAccount/publicAccount',
                component: () => import('@/view/publicAccount/public'),
                meta: {
                    icon: 'md-albums',
                    title: '平台设置',
                    classBName: 'publicAccount',
                    classBIndex: 3,
                },
                children: [{
                        path: '/publicAccount/publicAccount',
                        component: () => import('@/view/publicAccount/publicAccount'),
                        meta: {
                            title: '公众号回复',
                            classCName: 'publicAccount',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/templateMessage/templateMessage',
                        component: () => import('@/view/templateMessage/templateMessage'),
                        meta: {
                            title: '模板消息',
                            classCName: 'templateMessage',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/domainSetting/domainSetting',
                        component: () => import('@/view/domainSetting/domainSetting'),
                        meta: {
                            title: 'H5配置',
                            classCName: 'domainSetting',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/setting/pcSetting/pcSetting',
                        component: () => import('@/view/setting/pcSetting/pcSetting'),
                        meta: {
                            title: 'PC配置',
                            classCName: 'pcSetting',
                        }
                    }
                ]
            },
            {
                path: '/consumerRp/rpConfig/rpConfig',
                redirect: '/consumerRp/rpConfig/rpConfig',
                component: () => import('@/view/consumerRp/consumerRp'),
                meta: {
                    icon: 'md-albums',
                    title: '应用配置',
                    classBName: 'rpConfig',
                    classBIndex: 3,
                },
                children: [{
                        path: '/consumerRp/rpConfig/rpConfig',
                        component: () => import('@/view/consumerRp/rpConfig/rpConfig'),
                        meta: {
                            title: '应用配置',
                            classCName: 'rpConfig',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/consumerRp/redConfig/redConfig',
                        component: () => import('@/view/consumerRp/redConfig/redConfig'),
                        meta: {
                            title: '红包设置',
                            classCName: 'redConfig',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/member/memberCenter/memberEdit',
                        name: 'memberEdit',
                        component: () => import('@/view/companyMember/member/memberEdit'),
                        meta: {
                            title: '会员配置',
                            classCName: 'memberEdit',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/menu/menuCenter/menuList',
                        name: 'menuList',
                        component: () => import('@/view/companyMenu/menu/menuList'),
                        meta: {
                            title: '套餐列表',
                            classCName: 'menuList',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/menu/menuCenter/menuEdit',
                        name: 'editCompanyMenu',
                        component: () => import('@/view/companyMenu/menu/menuEdit'),
                        meta: {
                            title: '编辑套餐',
                            classCName: 'editCompanyMenu',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/communityCode/communityCharge/communityList',
                        name: 'communityList',
                        component: () => import('@/view/communityCode/communityCharge/communityList'),
                        meta: {
                            title: '社群二维码',
                            classCName: 'communityList',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/communityCode/communityCharge/editCommunity',
                        name: 'editCommunity',
                        component: () => import('@/view/communityCode/communityCharge/editCommunity'),
                        meta: {
                            title: '新增/编辑社群二维码',
                            classCName: 'editCommunity',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                ]
            },
            {
                path: '/setting/stateBrowsing',
                redirect: '/setting/stateBrowsing/stateBrowsingDetails',
                component: () => import('@/view/setting/stateBrowsing/stateBrowsingDetails'),
                meta: {
                    icon: 'md-albums',
                    title: '运维中心',
                    classBName: 'stateBrowsing',
                    classBIndex: 3,
                },
                children: [{
                    path: '/setting/stateBrowsing/stateBrowsingDetails',
                    component: () => import('@/view/setting/stateBrowsing/stateBrowsingDetails'),
                    meta: {
                        title: '运维中心',
                        classCName: 'stateBrowsingDetails',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }, ]
            },
        ]
    },
    // 招聘企业
    {
        path: '/consumerShop',
        redirect: '/consumerShop/shopCharge',
        component: Home,
        meta: {
            icon: 'md-basket',
            title: '企业管理',
            classAName: 'consumerShop',
            classAIndex: 4,
        },
        children: [{
            path: '/consumerShop/shopCharge',
            redirect: '/consumerShop/shopCharge/shopList',
            component: () => import('@/view/consumerShop/consumerShop'),
            meta: {
                icon: 'md-albums',
                title: '企业管理',
                classBName: 'shopCharge',
                classBIndex: 0,
            },
            children: [{
                    path: '/consumerShop/shopCharge/shopList',
                    name: 'shopList',
                    component: () => import('@/view/consumerShop/shopCharge/shopList'),
                    meta: {
                        title: '企业管理',
                        classCName: 'shopList',
                        classCIndex: 0,
                        classCOff: true,
                    }
                },
                {
                    path: '/consumerShop/shopCharge/editShop',
                    name: 'editShop',
                    component: () => import('@/view/consumerShop/shopCharge/editShop'),
                    meta: {
                        title: '编辑企业',
                        classCName: 'editShop',
                        classCIndex: 0,
                        classCOff: true,
                    }
                },
            ]
        }, ]
    },
    // 职位管理
    {
        path: '/consumerPost',
        redirect: '/consumerPost/postCharge',
        component: Home,
        meta: {
            icon: 'ios-people-outline',
            title: '职位管理',
            classAName: 'consumerPost',
            classAIndex: 4,
        },
        children: [{
                path: '/consumerPost/postCharge',
                redirect: '/consumerPost/postCharge/postCharge',
                component: () => import('@/view/consumerPost/consumerPost'),
                meta: {
                    icon: 'ios-people-outline',
                    title: '职位管理',
                    classBName: 'postCharge',
                    classBIndex: 0,
                },
                children: [{
                        path: '/consumerPost/postCharge/postCharge',
                        name: 'jobList',
                        component: () => import('@/view/consumerPost/postCharge/postCharge'),
                        meta: {
                            title: '职位管理',
                            classCName: 'postCharge',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/consumerPost/postCharge/postDetail',
                        name: 'postDetail',
                        component: () => import('@/view/consumerPost/postCharge/postDetail'),
                        meta: {
                            title: '职位详情',
                            classCName: 'postDetail',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                ]
            },
            {
                path: '/consumerPost/postReport',
                redirect: '/consumerPost/postReport/postReport',
                component: () => import('@/view/consumerPost/consumerPost'),
                meta: {
                    icon: 'ios-people-outline',
                    title: '职位举报',
                    classBName: 'postReport',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerPost/postReport/postReport',
                    name: 'postReport',
                    component: () => import('@/view/consumerPost/postReport/postReport'),
                    meta: {
                        title: '职位举报',
                        classCName: 'postReport',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }, ]
            },
            {
                path: '/consumerPost/postApply',
                redirect: '/consumerPost/postApply/postApply',
                component: () => import('@/view/consumerPost/postApply/postApply'),
                meta: {
                    icon: 'ios-people-outline',
                    title: '职位申请',
                    classBName: 'postApply',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerPost/postApply/postApply',
                    name: 'postApply',
                    component: () => import('@/view/consumerPost/postApply/postApply'),
                    meta: {
                        title: '职位申请',
                        classCName: 'postApply',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }, ]
            },
        ]
    },
    // 流水中心
    {
        path: '/order',
        redirect: '/order/orderCenter',
        component: Home,
        meta: {
            icon: 'ios-people-outline',
            title: '流水中心',
            classAName: 'order',
            classAIndex: 4,
        },
        children: [{
                path: '/order/orderCenter',
                redirect: '/order/orderCenter/rechargeOrder',
                component: () => import('@/view/orderCenter/index'),
                meta: {
                    icon: 'ios-people-outline',
                    title: '流水中心',
                    classBName: 'orderCharge',
                    classBIndex: 0,
                },
                children: [{
                        path: '/order/orderCenter/rechargeOrder',
                        component: () => import('@/view/orderCenter/order/rechargeOrder'),
                        meta: {
                            title: '充值流水',
                            classCName: 'orderCharge',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/order/orderCenter/orderList',
                        name: 'postDetail',
                        component: () => import('@/view/orderCenter/order/orderList'),
                        meta: {
                            title: '业务流水',
                            classCName: 'orderDetail',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                ]
            },
            {
                path: '/orderCenter/redDetail/redDetail',
                redirect: '/orderCenter/redDetail/redDetail',
                component: () => import('@/view/orderCenter/index'),
                meta: {
                    icon: 'ios-people-outline',
                    title: '红包记录',
                    classBName: 'redDetail',
                    classBIndex: 0,
                },
                children: [{
                    path: '/orderCenter/redDetail/redDetail',
                    name: 'redDetail',
                    component: () => import('@/view/orderCenter/redDetail/redDetail'),
                    meta: {
                        title: '红包记录',
                        classCName: 'redDetail',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }, ]
            }
        ]
    },
    // 用户管理
    {
        path: '/consumerUser',
        redirect: '/consumerUser/userCharge',
        component: Home,
        meta: {
            icon: 'md-person',
            title: '用户管理',
            classAName: 'consumerUser',
            classAIndex: 4,
        },
        children: [{
                path: '/consumerUser/userCharge',
                redirect: '/consumerUser/userCharge/userCharge',
                component: () => import('@/view/consumerUser/consumerUser'),
                meta: {
                    icon: 'md-person',
                    title: '用户管理',
                    classBName: 'userCharge',
                    classBIndex: 0,
                },
                children: [{
                        path: '/consumerUser/userCharge/userCharge',
                        component: () => import('@/view/consumerUser/userCharge/userCharge'),
                        meta: {
                            title: '用户管理',
                            classCName: 'userCharge',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/consumerUser/userCharge/audiCash',
                        name: 'audiCash',
                        component: () => import('@/view/consumerUser/userCharge/audiCash'),
                        meta: {
                            title: '提现审核',
                            classCName: 'audiCash',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                ]
            },
            {
                path: '/consumerResume/resumerCharge',
                redirect: '/consumerResume/resumerCharge/resumerCharge',
                component: () => import('@/view/consumerResume/consumerResume'),
                meta: {
                    icon: 'ios-list-box-outline',
                    title: '简历管理',
                    classBName: 'resumerCharge',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerResume/resumerCharge/resumerCharge',
                    name: 'resumerCharge',
                    component: () => import('@/view/consumerResume/resumerCharge/resumerCharge'),
                    meta: {
                        title: '简历管理',
                        classCName: 'resumerCharge',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }]
            },
            {
                path: '/consumerAdmin/deliveryRecord',
                redirect: '/consumerAdmin/deliveryRecord/deliveryRecord',
                component: () => import('@/view/consumerAdmin/consumerAdmin'),
                meta: {
                    icon: 'ios-cash-outline',
                    title: '投递记录',
                    classBName: 'deliveryRecord',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerAdmin/deliveryRecord/deliveryRecord',
                    component: () => import('@/view/consumerAdmin/deliveryRecord/deliveryRecord'),
                    meta: {
                        title: '投递记录',
                        classCName: 'deliveryRecord',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }]
            }
        ]
    },
    // 简历管理
    {
        path: '/consumerResume',
        redirect: '/consumerResume/resumerCharge',
        component: Home,
        meta: {
            icon: 'ios-list-box-outline',
            title: '简历管理',
            classAName: 'consumerResume',
            classAIndex: 4,
        },
        children: [{
                path: '/consumerResume/resumerCharge',
                redirect: '/consumerResume/resumerCharge/resumerCharge',
                component: () => import('@/view/consumerResume/consumerResume'),
                meta: {
                    icon: 'ios-list-box-outline',
                    title: '简历管理',
                    classBName: 'resumerCharge',
                    classBIndex: 0,
                },
                children: [{
                        path: '/consumerResume/resumerCharge/resumerCharge',
                        component: () => import('@/view/consumerResume/resumerCharge/resumerCharge'),
                        meta: {
                            title: '简历管理',
                            classCName: 'resumerCharge',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/consumerResume/resumerCharge/resumeDetail',
                        name: 'resumeDetail',
                        component: () => import('@/view/consumerResume/resumerCharge/resumeDetail'),
                        meta: {
                            title: '简历详情',
                            classCName: 'resumeDetail',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                    {
                        path: '/consumerResume/resumerCharge/resumeEdit',
                        name: 'resumeEdit',
                        component: () => import('@/view/consumerResume/resumerCharge/resumeEdit'),
                        meta: {
                            title: '新建/编辑简历',
                            classCName: 'resumeEdit',
                            classCIndex: 0,
                            classCOff: true,
                        }
                    },
                ]
            },
            {
                path: '/consumerResume/postList',
                redirect: '/consumerResume/postList/postList',
                component: () => import('@/view/consumerResume/consumerResume'),
                meta: {
                    icon: 'ios-list-box-outline',
                    title: '投递记录',
                    classBName: 'postList',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerResume/postList/postList',
                    name: 'postList',
                    component: () => import('@/view/consumerResume/postList/postList'),
                    meta: {
                        title: '投递记录',
                        classCName: 'postList',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }, ]
            },
        ]
    },
    // 账号管理
    {
        path: '/consumerAdmin/adminCharge',
        redirect: '/consumerAdmin/adminCharge',
        component: Home,
        meta: {
            icon: 'ios-cash-outline',
            title: '设置',
            classAName: 'consumerAdmin',
            classAIndex: 4,
        },
        children: [{
                path: '/consumerAdmin/operationLog',
                redirect: '/consumerAdmin/operationLog/operationLog',
                component: () => import('@/view/consumerAdmin/consumerAdmin'),
                meta: {
                    icon: 'ios-cash-outline',
                    title: '账号管理',
                    classBName: 'operationLog',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerAdmin/operationLog/operationLog',
                    component: () => import('@/view/consumerAdmin/operationLog/operationLog'),
                    meta: {
                        title: '账号管理',
                        classCName: 'operationLog',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }, ]
            },
            {
                path: '/consumerAdmin/adminCharge',
                redirect: '/consumerAdmin/adminCharge/adminCharge',
                component: () => import('@/view/consumerAdmin/consumerAdmin'),
                meta: {
                    icon: 'ios-cash-outline',
                    title: '账号管理',
                    classBName: 'adminCharge',
                    classBIndex: 0,
                },
                children: [{
                    path: '/consumerAdmin/adminCharge/adminCharge',
                    component: () => import('@/view/consumerAdmin/adminCharge/adminCharge'),
                    meta: {
                        title: '账号管理',
                        classCName: 'adminCharge',
                        classCIndex: 0,
                        classCOff: true,
                    }
                }]
            },
        ]
    },

    // 登陆
    {
        path: '/login',
        name: 'login',
        hide: false, // 不在侧边栏显示
        component: () => import('@/view/login/login.vue')
    },

    //客户接入
    {
        path: '/consumerAccess',
        name: 'consumerAccess',
        hide: false, // 不在侧边栏显示
        component: () => import('@/view/consumerAccess/consumerAccess'),
    },

    //超级管理员创建账号
    {
        path: '/consumerYh',
        name: 'consumerYh',
        hide: false, // 不在侧边栏显示
        component: () => import('@/view/consumerYh/consumerYh'),
    },

    //中国账号列表
    {
        path: '/consumerYhList',
        name: 'consumerYhList',
        hide: false, // 不在侧边栏显示
        component: () => import('@/view/consumerYh/consumerYhList'),
    },

    // 统一接入
    {
        path: '/accessModule',
        redirect: '/accessModule/access/access',
        component: Home,
        meta: {
            icon: 'ios-cash-outline',
            title: '设置',
            classAName: 'accessModule',
            classAIndex: 4,
        },
        children: [{
            path: '/accessModule/access',
            redirect: '/accessModule/access/access',
            component: () => import('@/view/accessModule/accessModule'),
            meta: {
                icon: 'ios-cash-outline',
                title: '账号管理',
                classBName: 'accessModule',
                classBIndex: 0,
            },
            children: [{
                path: '/accessModule/access/access',
                component: () => import('@/view/accessModule/access/access'),
                meta: {
                    title: '账号管理',
                    classCName: 'access',
                    classCIndex: 0,
                    classCOff: true,
                }
            }, ]
        }, ]
    },
]